import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class TestFrame extends JFrame {

	private JPanel contentPane;
	private JButton btnYes;
	private JButton btnNo;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TestFrame frame = new TestFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TestFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 307, 162);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		btnYes = new JButton("Yes");
		btnYes.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				// Yes button pressed...
			}
		});
		btnYes.setBounds(51, 73, 89, 23);
		contentPane.add(btnYes);
		
		btnNo = new JButton("No");
		
		btnNo.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				// No button pressed...
			}
		});
		btnNo.setBounds(177, 73, 89, 23);
		contentPane.add(btnNo);
		
		JLabel lblProceed = new JLabel("Proceed ?");
		lblProceed.setFont(new Font("Tahoma", Font.PLAIN, 18));
		lblProceed.setBounds(117, 23, 77, 22);
		contentPane.add(lblProceed);
		
		JButton btnNo = new JButton("No");
		btnNo.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnNo.setBounds(162, 73, 89, 23);
		contentPane.add(btnNo);
	}
}
